package com.dddd.blog.api.admin.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author dddd
 * @since 2022-03-08
 */
@TableName("ams_log")
@ApiModel(value = "Log对象", description = "")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id主键")
    private String id;

    @ApiModelProperty("用户id")
    private Long uid;

    @ApiModelProperty("请求ip")
    private String ip;

    @ApiModelProperty("请求url")
    private String url;

    @ApiModelProperty("请求方式")
    private String type;

    @ApiModelProperty("请求类路径")
    private String classPath;

    @ApiModelProperty("请求方法名")
    private String method;

    @ApiModelProperty("请求参数")
    private String params;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("操作状态")
    private Integer status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("操作花费时间")
    private Integer spendTime;

    @ApiModelProperty("异常")
    private String exception;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getClassPath() {
        return classPath;
    }

    public void setClassPath(String classPath) {
        this.classPath = classPath;
    }
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getSpendTime() {
        return spendTime;
    }

    public void setSpendTime(Integer spendTime) {
        this.spendTime = spendTime;
    }
    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    @Override
    public String toString() {
        return "Log{" +
            "id=" + id +
            ", uid=" + uid +
            ", ip=" + ip +
            ", url=" + url +
            ", type=" + type +
            ", classPath=" + classPath +
            ", method=" + method +
            ", params=" + params +
            ", description=" + description +
            ", status=" + status +
            ", createTime=" + createTime +
            ", spendTime=" + spendTime +
            ", exception=" + exception +
        "}";
    }
}
